<?php
/**
 * Update controller
 *
 * PHP version 5
 *
 * @category   Web
 * @package    Data2People
 * @subpackage Controllers
 * @author     Mike Bevz <mike.bevz@data2people>
 * @copyright  2007-2008 (c) Mike Bevz
 * @license    The BSD License http://data2people.com/license.txt
 * @version    SVN: $Id: IndexController.php 7 2008-11-28 04:33:32Z michael.bevz $
 *
 *
 */

require_once 'Zend/Controller/Action.php';
//require_once 'TV/Manager/Feeds.php'

class UpdateController extends Zend_Controller_Action
{

 /**
     * Index action
     *
     * @return void
     */
    public function indexAction()
    {
        $this->manager = new TV_Manager_Feeds();
        $this->manager->update();
                        
        //$this->view->assign('feed', $channel['items']);
        
        /*$query = Doctrine_Query::create();
        $query->select('r.*, COUNT(r.news_id) count')
              ->from("TagRefNews r")
              ->orderBy('count DESC')
              ->groupBy('r.tag_id')
              ->limit(50);
              
        $tags = $query->execute();*/
    }
}